package com.xuhao.examai.config;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Info;
import io.swagger.v3.oas.models.info.Contact;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class SwaggerConfig {

	@Bean
	public OpenAPI customOpenAPI() {
		return new OpenAPI()
				.info(new Info()
						.title("Exam AI API")
						.version("1.0.0")
						.description("考试AI系统API文档")
						.contact(new Contact()
								.name("Exam AI Team")
								.email("support@examai.com")));
	}
}